package updown.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>Title: ww.kaixin.downupservice.domain </p>
 * <p>Description:to-22-6-1: -  </p>
 *
 * @Author:jiangkaixin
 * @Date:2021/12/20
 * @Version: 1.0
 */
@Data
public class MyInstanceInfo {
    private Instance instance;

   public String getInstanceStatus(){
       return instance.getStatus();
   }

    public String getInstanceOverriddenStatus(){
        return instance.getOverriddenStatus();
    }

}

@NoArgsConstructor
@Data
class Instance{

    @JsonProperty("instanceId")
    private String instanceId;
    @JsonProperty("hostName")
    private String hostName;
    @JsonProperty("app")
    private String app;
    @JsonProperty("ipAddr")
    private String ipAddr;
    @JsonProperty("status")
    private String status;
    @JsonProperty("overriddenStatus")
    private String overriddenStatus;
}
